package cn.dao.leave;

import cn.entity.Employee;
import cn.entity.Leave;

import java.util.Date;
import java.util.List;

public interface LeaveDao {
    public void saveOrUpdate(Leave leave);
    public List<Leave> findBySnAndPage(final Employee employee, final int indexPage, final int pageSize, final Date startDate, final Date endDate);
    public long findCountBySn(final Employee employee,final Date startDate,final Date endDate);
    public Leave findById(Long id);
}
